# 定义一个装饰器
import time


def decorate(func):
    print('before')

    def wrapper():
        print("111111111")
        func()
        print("22222222")

    print('after')
    return wrapper


@decorate
def house():
    print('gogogo')


time.sleep(4)

house()